﻿using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace yc.Site.Models
{
	/// <summary>
	/// 用户修改密码
	/// </summary>
	public class PasswordEntity
	{
		/// <summary>
		/// 旧密码
		/// </summary>
		[Display(Name = "旧密码")]
		[Required(ErrorMessage = "请输入{0}")]
		public string OldPwd { set; get; }

		/// <summary>
		/// 新密码
		/// </summary>
		[Display(Name = "新密码")]
		[Required(ErrorMessage = "请输入{0}")]
		public string NewPwd { set; get; }

		[Display(Name = "确认密码")]
		[Required(ErrorMessage = "请输入{0}")]
		[Compare("NewPwd", ErrorMessage = "请输入{0}")]
		public string Confirm { set; get; }
	}
}